package com.yugao.fintech.antelope.system.model.rqrs.config;

import com.yugao.fintech.antelope.base.model.constants.ValidationCons;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 参数配置
 *

 */
@Schema(description = "参数配置")
@Getter
@Setter
public class ConfigBase {
	@Schema(description = "参数名称")
	@NotBlank(message = ValidationCons.NOT_EMPTY)
	@Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
	private String configName;

	@Schema(description = "参数键名")
	@NotBlank(message = ValidationCons.NOT_EMPTY)
	@Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
	private String configKey;

	@Schema(description = "配置值")
	@NotBlank(message = ValidationCons.NOT_EMPTY)
	private String configValue;

	@Schema(description = "配置组")
	private Long groupId;

	private String groupName;

	@Schema(description = "状态, 启用/禁用, 同一个组下只能使能一个")
	private String status;

	@Schema(description = "备注")
	private String remark;

}
